<template>
  <el-dialog
    top="30px"
    width="1000px"
    append-to-body
    :close-on-click-modal="false"
    :before-close="beforeClose"
    :visible.sync="visible"
  >
    <review-file :related-data="relatedData" @success="handleSuccess"></review-file>
  </el-dialog>
</template>

<script>
import ReviewFile from '@/credit/views/county/unionProvince/components/ReviewFile'

export default {
  components: {
    ReviewFile,
  },
  props: {
    visible: Boolean,
    relatedData: {
      type: Object,
      default() {
        return {}
      },
    },
  },
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    handleSuccess() {
      this.$emit('success', true)
      this.beforeClose()
    },
  },
}
</script>

<style lang="scss" scoped></style>
